package com.example.spotitube.Model;

import java.util.Comparator;

import com.example.spotitube.Model.Track;

public class LengthComparator implements Comparator<Track>{
	@Override
	public int compare(Track track1, Track track2){

		return track1.getLength() - track2.getLength();
	}
}